package com.dayuanit.dy15.ebook.bookshop.dto;

import lombok.Data;

import java.util.List;

/**
 * 订单数据模型
 */
@Data
public class OrderDTO {
    private Long orderId;
    private String createTime;
    private String realName;
    private String totalAmount;
    //只是用来展示
    private String statusDesc;
    //用来逻辑判断使用的
    private Integer orderStatus;

    //订单明细   订单和订单明细是一对多
    private List<OrderDetailDTO> orderDetails;


    /**
     * 订单明细模型
     */
    @Data
    public static class OrderDetailDTO {
        private String commodityName;
        private String pictureUrl;
        private Integer buyNum;
        private Long orderId;
    }

}
